home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 May: Tool Chest / Dev.CD May 00 TC.toast / pc / tool chest / quicktime / quicktime tools / quicktime xcmds / editing stack / background_2772.xml next >
Encoding:
Extensible Markup Language  |  1992-06-12  |  13.2 KB  |  387 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2772</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3251.css" />
  10.     <part>
  11.         <id>1</id>
  12.         <type>field</type>
  13.         <visible> <true /> </visible>
  14.         <dontWrap> <false /> </dontWrap>
  15.         <dontSearch> <false /> </dontSearch>
  16.         <sharedText> <false /> </sharedText>
  17.         <fixedLineHeight> <false /> </fixedLineHeight>
  18.         <autoTab> <false /> </autoTab>
  19.         <lockText> <false /> </lockText>
  20.         <rect>
  21.             <left>101</left>
  22.             <top>4</top>
  23.             <right>491</right>
  24.             <bottom>34</bottom>
  25.         </rect>
  26.         <style>transparent</style>
  27.         <autoSelect> <false /> </autoSelect>
  28.         <showLines> <false /> </showLines>
  29.         <wideMargins> <false /> </wideMargins>
  30.         <multipleLines> <false /> </multipleLines>
  31.         <reservedFamily> 0 </reservedFamily>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>0</icon>
  34.         <textAlign>left</textAlign>
  35.         <font>Palatino</font>
  36.         <textSize>24</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <textHeight>32</textHeight>
  39.         <name>cardname</name>
  40.         <script>on closeFIeld
  41. set name of this card to me
  42. buildPopUp
  43. end closeField</script>
  44.     </part>
  45.     <part>
  46.         <id>2</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <false /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <false /> </lockText>
  55.         <rect>
  56.             <left>8</left>
  57.             <top>370</top>
  58.             <right>334</right>
  59.             <bottom>398</bottom>
  60.         </rect>
  61.         <style>rectangle</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>Geneva</font>
  71.         <textSize>9</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>12</textHeight>
  74.         <name>fileName</name>
  75.         <script></script>
  76.     </part>
  77.     <part>
  78.         <id>3</id>
  79.         <type>button</type>
  80.         <visible> <true /> </visible>
  81.         <reserved5> 0 </reserved5>
  82.         <reserved4> 0 </reserved4>
  83.         <reserved3> 0 </reserved3>
  84.         <reserved2> 0 </reserved2>
  85.         <reserved1> 0 </reserved1>
  86.         <enabled> <true /> </enabled>
  87.         <rect>
  88.             <left>8</left>
  89.             <top>348</top>
  90.             <right>89</right>
  91.             <bottom>368</bottom>
  92.         </rect>
  93.         <style>shadow</style>
  94.         <showName> <true /> </showName>
  95.         <highlight> <false /> </highlight>
  96.         <autoHighlight> <true /> </autoHighlight>
  97.         <sharedHighlight> <true /> </sharedHighlight>
  98.         <family>0</family>
  99.         <titleWidth>0</titleWidth>
  100.         <icon>0</icon>
  101.         <textAlign>center</textAlign>
  102.         <font>Chicago</font>
  103.         <textSize>12</textSize>
  104.         <textStyle>plain</textStyle>
  105.         <name>Pick A File</name>
  106.         <script>on mouseUp
  107. answer file "Pick a Movie File:" of type "MooV"
  108. if it is not empty then put it into bg field filename
  109. end mouseup</script>
  110.     </part>
  111.     <part>
  112.         <id>4</id>
  113.         <type>button</type>
  114.         <visible> <true /> </visible>
  115.         <reserved5> 0 </reserved5>
  116.         <reserved4> 0 </reserved4>
  117.         <reserved3> 0 </reserved3>
  118.         <reserved2> 0 </reserved2>
  119.         <reserved1> 0 </reserved1>
  120.         <enabled> <true /> </enabled>
  121.         <rect>
  122.             <left>7</left>
  123.             <top>9</top>
  124.             <right>73</right>
  125.             <bottom>26</bottom>
  126.         </rect>
  127.         <style>shadow</style>
  128.         <showName> <true /> </showName>
  129.         <highlight> <false /> </highlight>
  130.         <autoHighlight> <true /> </autoHighlight>
  131.         <sharedHighlight> <true /> </sharedHighlight>
  132.         <family>0</family>
  133.         <titleWidth>0</titleWidth>
  134.         <icon>0</icon>
  135.         <textAlign>center</textAlign>
  136.         <font>Chicago</font>
  137.         <textSize>12</textSize>
  138.         <textStyle>plain</textStyle>
  139.         <name>Go Card</name>
  140.         <script>on mouseDown
  141. GoCard
  142. end mouseDown
  143. </script>
  144.     </part>
  145.     <part>
  146.         <id>8</id>
  147.         <type>button</type>
  148.         <visible> <true /> </visible>
  149.         <reserved5> 0 </reserved5>
  150.         <reserved4> 0 </reserved4>
  151.         <reserved3> 0 </reserved3>
  152.         <reserved2> 0 </reserved2>
  153.         <reserved1> 0 </reserved1>
  154.         <enabled> <true /> </enabled>
  155.         <rect>
  156.             <left>479</left>
  157.             <top>371</top>
  158.             <right>513</right>
  159.             <bottom>400</bottom>
  160.         </rect>
  161.         <style>transparent</style>
  162.         <showName> <false /> </showName>
  163.         <highlight> <false /> </highlight>
  164.         <autoHighlight> <true /> </autoHighlight>
  165.         <sharedHighlight> <true /> </sharedHighlight>
  166.         <family>0</family>
  167.         <titleWidth>0</titleWidth>
  168.         <icon>902</icon>
  169.         <textAlign>center</textAlign>
  170.         <font>Chicago</font>
  171.         <textSize>12</textSize>
  172.         <textStyle>plain</textStyle>
  173.         <name></name>
  174.         <script>on mouseUp
  175. go prev card
  176. end mouseUp</script>
  177.     </part>
  178.     <part>
  179.         <id>9</id>
  180.         <type>button</type>
  181.         <visible> <true /> </visible>
  182.         <reserved5> 0 </reserved5>
  183.         <reserved4> 0 </reserved4>
  184.         <reserved3> 0 </reserved3>
  185.         <reserved2> 0 </reserved2>
  186.         <reserved1> 0 </reserved1>
  187.         <enabled> <true /> </enabled>
  188.         <rect>
  189.             <left>512</left>
  190.             <top>371</top>
  191.             <right>544</right>
  192.             <bottom>400</bottom>
  193.         </rect>
  194.         <style>transparent</style>
  195.         <showName> <false /> </showName>
  196.         <highlight> <false /> </highlight>
  197.         <autoHighlight> <true /> </autoHighlight>
  198.         <sharedHighlight> <true /> </sharedHighlight>
  199.         <family>0</family>
  200.         <titleWidth>0</titleWidth>
  201.         <icon>26425</icon>
  202.         <textAlign>center</textAlign>
  203.         <font>Chicago</font>
  204.         <textSize>12</textSize>
  205.         <textStyle>plain</textStyle>
  206.         <name></name>
  207.         <script>on mouseUp
  208. go next card
  209. end mouseUp</script>
  210.     </part>
  211.     <part>
  212.         <id>11</id>
  213.         <type>button</type>
  214.         <visible> <true /> </visible>
  215.         <reserved5> 0 </reserved5>
  216.         <reserved4> 0 </reserved4>
  217.         <reserved3> 0 </reserved3>
  218.         <reserved2> 0 </reserved2>
  219.         <reserved1> 0 </reserved1>
  220.         <enabled> <true /> </enabled>
  221.         <rect>
  222.             <left>9</left>
  223.             <top>302</top>
  224.             <right>110</right>
  225.             <bottom>318</bottom>
  226.         </rect>
  227.         <style>checkbox</style>
  228.         <showName> <true /> </showName>
  229.         <highlight> <true /> </highlight>
  230.         <autoHighlight> <true /> </autoHighlight>
  231.         <sharedHighlight> <true /> </sharedHighlight>
  232.         <family>0</family>
  233.         <titleWidth>0</titleWidth>
  234.         <icon>0</icon>
  235.         <textAlign>center</textAlign>
  236.         <font>Geneva</font>
  237.         <textSize>9</textSize>
  238.         <textStyle>bold</textStyle>
  239.         <name>Display Tracks</name>
  240.         <script>on mouseUp
  241. global currwindow
  242. if there is a window currwindow then
  243. set displaytracks of window currwindow to the hilite of me
  244. end if
  245. end mouseUp</script>
  246.     </part>
  247.     <part>
  248.         <id>12</id>
  249.         <type>button</type>
  250.         <visible> <true /> </visible>
  251.         <reserved5> 0 </reserved5>
  252.         <reserved4> 0 </reserved4>
  253.         <reserved3> 0 </reserved3>
  254.         <reserved2> 0 </reserved2>
  255.         <reserved1> 0 </reserved1>
  256.         <enabled> <true /> </enabled>
  257.         <rect>
  258.             <left>5</left>
  259.             <top>276</top>
  260.             <right>139</right>
  261.             <bottom>298</bottom>
  262.         </rect>
  263.         <style>roundrect</style>
  264.         <showName> <true /> </showName>
  265.         <highlight> <false /> </highlight>
  266.         <autoHighlight> <true /> </autoHighlight>
  267.         <sharedHighlight> <true /> </sharedHighlight>
  268.         <family>0</family>
  269.         <titleWidth>0</titleWidth>
  270.         <icon>0</icon>
  271.         <textAlign>center</textAlign>
  272.         <font>Chicago</font>
  273.         <textSize>12</textSize>
  274.         <textStyle>plain</textStyle>
  275.         <name>Open Edit Window</name>
  276.         <script>on mouseUp
  277. global currWindow
  278. if there is a window currwindow then close window currwindow
  279.  
  280. QTEditMovie field filename,¬¨
  281. tallWindoid,¬
  282. the topLeft of cd btn here
  283. get the result
  284. if it is not empty then
  285. answer it
  286. exit mouseUp
  287. end if
  288.  
  289. put extractFIleName(field filename) into currWindow
  290. set windowCloseMsg of window currWindow to wCLose
  291.  
  292. set displaytracks of window currwindow to the hilite ¬¨
  293. of bg btn "Display Tracks"
  294. end mouseUp</script>
  295.     </part>
  296.     <part>
  297.         <id>13</id>
  298.         <type>button</type>
  299.         <visible> <true /> </visible>
  300.         <reserved5> 0 </reserved5>
  301.         <reserved4> 0 </reserved4>
  302.         <reserved3> 0 </reserved3>
  303.         <reserved2> 0 </reserved2>
  304.         <reserved1> 0 </reserved1>
  305.         <enabled> <true /> </enabled>
  306.         <rect>
  307.             <left>6</left>
  308.             <top>321</top>
  309.             <right>139</right>
  310.             <bottom>343</bottom>
  311.         </rect>
  312.         <style>roundrect</style>
  313.         <showName> <true /> </showName>
  314.         <highlight> <false /> </highlight>
  315.         <autoHighlight> <true /> </autoHighlight>
  316.         <sharedHighlight> <true /> </sharedHighlight>
  317.         <family>0</family>
  318.         <titleWidth>0</titleWidth>
  319.         <icon>0</icon>
  320.         <textAlign>center</textAlign>
  321.         <font>Chicago</font>
  322.         <textSize>12</textSize>
  323.         <textStyle>plain</textStyle>
  324.         <name>Save Changes Now</name>
  325.         <script>on mouseUp
  326. global currWindow
  327. if there is a window currwindow then
  328. send saveChanges to window currWindow
  329. end if
  330. end mouseUp</script>
  331.     </part>
  332.     <part>
  333.         <id>14</id>
  334.         <type>button</type>
  335.         <visible> <true /> </visible>
  336.         <reserved5> 0 </reserved5>
  337.         <reserved4> 0 </reserved4>
  338.         <reserved3> 0 </reserved3>
  339.         <reserved2> 0 </reserved2>
  340.         <reserved1> 0 </reserved1>
  341.         <enabled> <true /> </enabled>
  342.         <rect>
  343.             <left>349</left>
  344.             <top>374</top>
  345.             <right>453</right>
  346.             <bottom>394</bottom>
  347.         </rect>
  348.         <style>roundrect</style>
  349.         <showName> <true /> </showName>
  350.         <highlight> <false /> </highlight>
  351.         <autoHighlight> <true /> </autoHighlight>
  352.         <sharedHighlight> <true /> </sharedHighlight>
  353.         <family>0</family>
  354.         <titleWidth>0</titleWidth>
  355.         <icon>0</icon>
  356.         <textAlign>center</textAlign>
  357.         <font>Chicago</font>
  358.         <textSize>12</textSize>
  359.         <textStyle>plain</textStyle>
  360.         <name>Undo Last Edit</name>
  361.         <script>on mouseUp
  362. global currWindow
  363. if there is a window currWindow then
  364. send Undo to window currwindow
  365. end if
  366. end mouseUp</script>
  367.     </part>
  368.     <part>
  369.         <id>17</id>
  370.         <type>button</type>
  371.         <visible> <true /> </visible>
  372.         <reserved5> 0 </reserved5>
  373.         <reserved4> 0 </reserved4>
  374.         <reserved3> 0 </reserved3>
  375.         <reserved2> 0 </reserved2>
  376.         <reserved1> 0 </reserved1>
  377.         <enabled> <true /> </enabled>
  378.         <rect>
  379.             <left>78</left>
  380.             <top>4</top>
  381.             <right>105</right>
  382.             <bottom>27</bottom>
  383.         </rect>
  384.         <style>transparent</style>
  385.         <showName> <false /> </showName>
  386.         <highlight> <false /> </highlight>
  387.         <autoHighlight> <true /> </autoHighlight>
  388.         <sharedHighlight> <true /> </sharedHighlight>
  389.         <family>0</family>
  390.         <titleWidth>0</titleWidth>
  391.         <icon>26635</icon>
  392.         <textAlign>center</textAlign>
  393.         <font>Chicago</font>
  394.         <textSize>12</textSize>
  395.         <textStyle>plain</textStyle>
  396.         <name></name>
  397.         <script>on mouseUp
  398. if there is a cd field "help text" then
  399. put the visible of cd field "help text" into itsThere
  400.  
  401. set the visible of cd field "help text" to not itsThere
  402. if itsThere then
  403. set lockText of cd field "help text" to true
  404. else
  405. if the commandKey is down then
  406. set lockText of cd field "help text" to false
  407. end if
  408. end if
  409. else
  410. Answer "Sorry, no help text for this card"
  411. end if
  412.  
  413. end mouseUp</script>
  414.     </part>
  415.     <part>
  416.         <id>18</id>
  417.         <type>button</type>
  418.         <visible> <false /> </visible>
  419.         <reserved5> 0 </reserved5>
  420.         <reserved4> 0 </reserved4>
  421.         <reserved3> 0 </reserved3>
  422.         <reserved2> 0 </reserved2>
  423.         <reserved1> 0 </reserved1>
  424.         <enabled> <true /> </enabled>
  425.         <rect>
  426.             <left>348</left>
  427.             <top>135</top>
  428.             <right>510</right>
  429.             <bottom>257</bottom>
  430.         </rect>
  431.         <style>rectangle</style>
  432.         <showName> <false /> </showName>
  433.         <highlight> <false /> </highlight>
  434.         <autoHighlight> <false /> </autoHighlight>
  435.         <sharedHighlight> <true /> </sharedHighlight>
  436.         <family>0</family>
  437.         <titleWidth>0</titleWidth>
  438.         <icon>0</icon>
  439.         <textAlign>center</textAlign>
  440.         <font>Chicago</font>
  441.         <textSize>12</textSize>
  442.         <textStyle>plain</textStyle>
  443.         <name>Clipper</name>
  444.         <script>on mouseDown
  445.  
  446. put the clickLoc into origPt
  447. put the rect of me into origRect
  448. put origRect into newRect
  449. put origRect into myRect
  450. put origRect into growRect
  451. put item 3 of growRect-18 into item 1 of growRect
  452. put item 4 of growRect-18 into item 2 of growRect
  453.  
  454. if origPt is within growRect then
  455. put item 3 of growRect - item 1 of origPt into slopX
  456. put item 4 of growRect - item 2 of origPt into slopY
  457.  
  458. repeat while the mouse is down
  459. get the mouseLoc
  460.  
  461. put the left of me + 30 - slopX into minLimX
  462. put the top of me + 30 - slopY into minLimY
  463. put width of card window - slopX into maxLimX
  464. put top of btn "Set Clip" - slopY into maxLimY
  465.  
  466. if item 1 of it < minLimX then put minLimX into item 1 of it
  467. if item 2 of it < minLimY then put minLimY into item 2 of it
  468. if item 1 of it > maxLimX then put maxLimX into item 1 of it
  469. if item 2 of it > maxLimY then put maxLimY into item 2 of it
  470.  
  471. put item 1 of it + slopX into item 3 of newRect
  472. put item 2 of it + slopY into item 4 of newRect
  473. set the rect of me to newRect
  474. end repeat
  475. else
  476. put item 1 of origPt - the left of me into minLimX
  477. put item 2 of origPt - the top of me into minLimY
  478. put width of card window - width of me + minLimX into maxLimX
  479. put top of btn "Set CLip" - height of me + minLimY into maxLimY
  480.  
  481. repeat while the mouse is down
  482. get the mouseLoc
  483.  
  484. if item 1 of it < minLimX then put minLimX into item 1 of it
  485. if item 2 of it < minLimY then put minLimY into item 2 of it
  486. if item 1 of it > maxLimX then put maxLimX into item 1 of it
  487. if item 2 of it > maxLimY then put maxLimY into item 2 of it
  488.  
  489. put item 1 of it - item 1 of origPt into slopX
  490. put item 2 of it - item 2 of origPt into slopY
  491.  
  492. put origRect into myRect
  493. add slopX to item 1 of myRect
  494. add slopX to item 3 of myRect
  495. add slopY to item 2 of myRect
  496. add slopY to item 4 of myRect
  497.  
  498. set the rect of me to myRect
  499. end repeat
  500.  
  501. put myRect into newRect
  502. end if
  503.  
  504. set the rect of me to newRect
  505. end mouseDown
  506.  
  507. </script>
  508.     </part>
  509.     <name></name>
  510.     <script>on primeCard
  511. set hilite of bg btn "Display Tracks" to true
  512. pass primeCard
  513. end primeCard
  514.  
  515. on openBackground
  516. hide bg btn clipper
  517. end openBackground</script>
  518. </background>
  519.